package com.gmldd.dao;

import java.util.List;

/**
 * Created by gmldd on 2016/7/31.
 */
public interface BaseDao<T> {

    public void add(T entity);

    public void delete(T entity);

    public void delete(int id);

    public void delete(String id);

    public void update(T entity);

    public T getById(int id);

    public T get(T entity);

    public List<T> getIds(int[] ids);

    public List<String> getIds(String[] ids);

    public List<T> getAll();

    public void executeSql(String sql);

    public String getTableName();

    public String[] getColumnName();

    public List<T> getPage(int pageSize, int pageNum);

}
